﻿using System;
using System.CodeDom.Compiler;
using System.Diagnostics;
using Google.Protobuf;
using Google.Protobuf.Reflection;

namespace EggLink.DanhengServer.Proto
{
	// Token: 0x020000FB RID: 251
	[DebuggerDisplay("{ToString(),nq}")]
	public sealed class BattleEventProperty : IMessage<BattleEventProperty>, IMessage, IEquatable<BattleEventProperty>, IDeepCloneable<BattleEventProperty>, IBufferMessage
	{
		// Token: 0x17000358 RID: 856
		// (get) Token: 0x06000B68 RID: 2920 RVA: 0x00021DE8 File Offset: 0x0001FFE8
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public static MessageParser<BattleEventProperty> Parser
		{
			get
			{
				return BattleEventProperty._parser;
			}
		}

		// Token: 0x17000359 RID: 857
		// (get) Token: 0x06000B69 RID: 2921 RVA: 0x00021DEF File Offset: 0x0001FFEF
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public static MessageDescriptor Descriptor
		{
			get
			{
				return BattleEventPropertyReflection.Descriptor.MessageTypes[0];
			}
		}

		// Token: 0x1700035A RID: 858
		// (get) Token: 0x06000B6A RID: 2922 RVA: 0x00021E01 File Offset: 0x00020001
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		MessageDescriptor IMessage.Descriptor
		{
			get
			{
				return BattleEventProperty.Descriptor;
			}
		}

		// Token: 0x06000B6B RID: 2923 RVA: 0x00021E08 File Offset: 0x00020008
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public BattleEventProperty()
		{
		}

		// Token: 0x06000B6C RID: 2924 RVA: 0x00021E10 File Offset: 0x00020010
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public BattleEventProperty(BattleEventProperty other) : this()
		{
			this.spBar_ = ((other.spBar_ != null) ? other.spBar_.Clone() : null);
			this._unknownFields = UnknownFieldSet.Clone(other._unknownFields);
		}

		// Token: 0x06000B6D RID: 2925 RVA: 0x00021E45 File Offset: 0x00020045
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public BattleEventProperty Clone()
		{
			return new BattleEventProperty(this);
		}

		// Token: 0x1700035B RID: 859
		// (get) Token: 0x06000B6E RID: 2926 RVA: 0x00021E4D File Offset: 0x0002004D
		// (set) Token: 0x06000B6F RID: 2927 RVA: 0x00021E55 File Offset: 0x00020055
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public SpBarInfo SpBar
		{
			get
			{
				return this.spBar_;
			}
			set
			{
				this.spBar_ = value;
			}
		}

		// Token: 0x06000B70 RID: 2928 RVA: 0x00021E5E File Offset: 0x0002005E
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public override bool Equals(object other)
		{
			return this.Equals(other as BattleEventProperty);
		}

		// Token: 0x06000B71 RID: 2929 RVA: 0x00021E6C File Offset: 0x0002006C
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public bool Equals(BattleEventProperty other)
		{
			return other != null && (other == this || (object.Equals(this.SpBar, other.SpBar) && object.Equals(this._unknownFields, other._unknownFields)));
		}

		// Token: 0x06000B72 RID: 2930 RVA: 0x00021EA0 File Offset: 0x000200A0
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public override int GetHashCode()
		{
			int num = 1;
			if (this.spBar_ != null)
			{
				num ^= this.SpBar.GetHashCode();
			}
			if (this._unknownFields != null)
			{
				num ^= this._unknownFields.GetHashCode();
			}
			return num;
		}

		// Token: 0x06000B73 RID: 2931 RVA: 0x00021EDC File Offset: 0x000200DC
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public override string ToString()
		{
			return JsonFormatter.ToDiagnosticString(this);
		}

		// Token: 0x06000B74 RID: 2932 RVA: 0x00021EE4 File Offset: 0x000200E4
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public void WriteTo(CodedOutputStream output)
		{
			output.WriteRawMessage(this);
		}

		// Token: 0x06000B75 RID: 2933 RVA: 0x00021EED File Offset: 0x000200ED
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		void IBufferMessage.InternalWriteTo(ref WriteContext output)
		{
			if (this.spBar_ != null)
			{
				output.WriteRawTag(18);
				output.WriteMessage(this.SpBar);
			}
			if (this._unknownFields != null)
			{
				this._unknownFields.WriteTo(ref output);
			}
		}

		// Token: 0x06000B76 RID: 2934 RVA: 0x00021F20 File Offset: 0x00020120
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public int CalculateSize()
		{
			int num = 0;
			if (this.spBar_ != null)
			{
				num += 1 + CodedOutputStream.ComputeMessageSize(this.SpBar);
			}
			if (this._unknownFields != null)
			{
				num += this._unknownFields.CalculateSize();
			}
			return num;
		}

		// Token: 0x06000B77 RID: 2935 RVA: 0x00021F60 File Offset: 0x00020160
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public void MergeFrom(BattleEventProperty other)
		{
			if (other == null)
			{
				return;
			}
			if (other.spBar_ != null)
			{
				if (this.spBar_ == null)
				{
					this.SpBar = new SpBarInfo();
				}
				this.SpBar.MergeFrom(other.SpBar);
			}
			this._unknownFields = UnknownFieldSet.MergeFrom(this._unknownFields, other._unknownFields);
		}

		// Token: 0x06000B78 RID: 2936 RVA: 0x00021FB4 File Offset: 0x000201B4
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public void MergeFrom(CodedInputStream input)
		{
			input.ReadRawMessage(this);
		}

		// Token: 0x06000B79 RID: 2937 RVA: 0x00021FC0 File Offset: 0x000201C0
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		void IBufferMessage.InternalMergeFrom(ref ParseContext input)
		{
			uint num;
			while ((num = input.ReadTag()) != 0U)
			{
				if (num != 18U)
				{
					this._unknownFields = UnknownFieldSet.MergeFieldFrom(this._unknownFields, ref input);
				}
				else
				{
					if (this.spBar_ == null)
					{
						this.SpBar = new SpBarInfo();
					}
					input.ReadMessage(this.SpBar);
				}
			}
		}

		// Token: 0x040004B1 RID: 1201
		private static readonly MessageParser<BattleEventProperty> _parser = new MessageParser<BattleEventProperty>(() => new BattleEventProperty());

		// Token: 0x040004B2 RID: 1202
		private UnknownFieldSet _unknownFields;

		// Token: 0x040004B3 RID: 1203
		public const int SpBarFieldNumber = 2;

		// Token: 0x040004B4 RID: 1204
		private SpBarInfo spBar_;
	}
}
